package a.h;

import javax.swing.*;
import javax.swing.text.Document;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

public class gb
  implements jb, ub
{
  public static final String a = "DefaultEditorFactory.enumAlignment";
  public static final String b = "DefaultEditorFactory.enumStyle";
  public static final String c = "DefaultEditorFactory.stringStyle";
  public static final String d = "DefaultEditorFactory.controllerId";
  public static final String e = "DefaultEditorFactory.fillSpaceWeight";
  public static final String f = "DefaultEditorFactory.cardId";
  public static final String g = "DefaultEditorFactory.maxValueLabelText";
  public static final String h = "DefaultEditorFactory.minValueLabelText";
  public static final Object i = gb.a_.c_.a;
  public static final Object j = gb.a_.c_.c;
  public static final Object k = gb.a_.b_.a;
  public static final Object l = gb.a_.b_.b;
  public static final Object m = o.r;
  public static final Object n = o.s;
  private static final String o = "DefaultEditorFactory.stringEditable";
  private ob p;
  static Class q;
  public static int r;
  
  public ob a()
  {
    return this.p;
  }
  
  public void a(ob paramob)
  {
    this.p = paramob;
  }
  
  public ib a(dc paramdc)
  {
    return a(paramdc, null);
  }
  
  public ib a(dc paramdc, Map paramMap)
  {
    fb localfb;
    if ((ec.t != 0) || (a() == null))
    {
      a(paramdc.k());
      try
      {
        localfb = new fb(paramdc, this);
      }
      finally
      {
        a(null);
      }
    }
    else
    {
      localfb = new fb(paramdc, this);
    }
    paramdc.c(localfb);
    return localfb;
  }
  
  public tb a(ec paramec)
  {
    return a(paramec, null);
  }
  
  public tb a(ec paramec, Map paramMap)
  {
    int i1 = ec.t;
    boolean bool4 = ec.s;
    Object localObject1;
    if (i1 == 0) {
      if ((paramec instanceof hc))
      {
        localObject1 = new p(paramec);
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    Object localObject2;
    if (i1 == 0) {
      if ((paramec instanceof ic))
      {
        if (i1 == 0) {}
        localObject2 = paramMap == null ? null : paramMap.get("ColorOptionItem.ATTRIBUTE_ALLOW_TEXT_INPUT");
        boolean bool1 = localObject2 != null ? Boolean.TRUE.equals(localObject2) : Boolean.TRUE.equals(paramec.c("ColorOptionItem.ATTRIBUTE_ALLOW_TEXT_INPUT"));
        if (bool1)
        {
          localObject1 = j.a((ic)paramec, a());
          if (i1 != 0) {
            return localObject1;
          }
          if (!bool4) {
            break label1336;
          }
        }
        localObject1 = new n((ic)paramec, a());
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof mc))
      {
        localObject1 = new r((mc)paramec, a());
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof lc))
      {
        localObject1 = new e((lc)paramec, a());
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof fc))
      {
        localObject1 = new d_((fc)paramec);
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    Object localObject3;
    label353:
    Object localObject4;
    label390:
    label397:
    Object localObject5;
    Object localObject6;
    if (i1 == 0) {
      if ((paramec instanceof jc))
      {
        localObject2 = paramec.c(jc.y);
        localObject3 = paramec.c(jc.z);
        if (i1 == 0) {
          if ((localObject2 instanceof Double))
          {
            if (i1 != 0) {
              break label353;
            }
            if ((localObject3 instanceof Double))
            {
              localObject1 = q.a((jc)paramec, paramMap, a());
              if (i1 != 0) {
                return localObject1;
              }
              if (!bool4) {
                break label1336;
              }
            }
          }
        }
        if (i1 == 0)
        {
          if (!(localObject2 instanceof Double)) {
            if (i1 != 0) {
              break label397;
            }
          }
        }
        else {
          if (!(localObject3 instanceof Double)) {
            break label390;
          }
        }
        localObject1 = c_.d(paramec, paramMap);
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
        localObject4 = (Locale)paramec.c(jc.C);
        localObject5 = new ge((Locale)localObject4);
        localObject6 = paramec.c(jc.B);
        if (Boolean.TRUE.equals(localObject6)) {
          ((ge)localObject5).a(true);
        }
        if (i1 == 0) {}
        HashMap localHashMap = paramMap != null ? paramMap : new HashMap();
        fd localfd = new fd((Locale)localObject4, fd.a, fd.b);
        boolean bool3 = localHashMap.containsKey(pc.z);
        Object localObject7 = localHashMap.get(pc.z);
        localHashMap.put(pc.z, localfd);
        m localm = new m(paramec, localHashMap);
        if (i1 == 0)
        {
          localm.a((Document)localObject5);
          if (bool3)
          {
            if (i1 != 0) {
              break label577;
            }
            localHashMap.put(pc.z, localObject7);
            if (!bool4) {
              break label578;
            }
          }
        }
        label577:
        localHashMap.remove(pc.z);
        label578:
        localObject1 = localm;
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof nc))
      {
        localObject2 = paramec.c(nc.y);
        localObject3 = paramec.c(nc.z);
        if (i1 == 0) {
          if ((localObject2 instanceof Integer))
          {
            if (i1 != 0) {
              break label675;
            }
            if ((localObject3 instanceof Integer))
            {
              localObject1 = q.a((nc)paramec, paramMap, a());
              if (i1 != 0) {
                return localObject1;
              }
              if (!bool4) {
                break label1336;
              }
            }
          }
        }
        label675:
        if ((i1 != 0) || (((localObject2 instanceof Integer)) || ((localObject3 instanceof Integer))))
        {
          localObject1 = c_.e(paramec, paramMap);
          if (i1 != 0) {
            return localObject1;
          }
          if (!bool4) {
            break label1336;
          }
        }
        localObject4 = new m(paramec, paramMap);
        localObject5 = new fe();
        localObject6 = paramec.c(nc.A);
        if (i1 == 0)
        {
          if (Boolean.TRUE.equals(localObject6)) {
            ((fe)localObject5).a(true);
          }
          ((m)localObject4).a((Document)localObject5);
        }
        localObject1 = localObject4;
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof qc))
      {
        localObject1 = new l(paramec, paramMap, false);
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof rc))
      {
        localObject1 = new k(paramec, paramMap);
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof oc))
      {
        localObject1 = new k(paramec, paramMap);
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof sc))
      {
        localObject2 = (String)paramec.o();
        localObject1 = new m(paramec, paramMap, new JPasswordField((String)localObject2));
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if (i1 == 0) {
      if ((paramec instanceof tc))
      {
        localObject2 = paramec.c(tc.E);
        if (i1 == 0) {
          if (paramMap != null)
          {
            if (i1 != 0) {
              break label1006;
            }
            if (a(paramMap.get(cd.i)))
            {
              localObject3 = paramec.c(tc.G);
              if (i1 != 0) {
                break label1006;
              }
              if (localObject3 != null) {
                localObject2 = localObject3;
              }
            }
          }
        }
        label1006:
        localObject3 = paramec.c(c);
        if (i1 == 0) {}
        boolean bool2 = !Boolean.FALSE.equals(paramec.c(o));
        if (i1 == 0) {
          if (k.equals(localObject3))
          {
            localObject1 = new l(paramec, paramMap, bool2);
            if (i1 != 0) {
              return localObject1;
            }
            if (!bool4) {
              break label1336;
            }
          }
        }
        if (i1 == 0) {
          if (l.equals(localObject3))
          {
            localObject1 = new m(paramec, paramMap);
            if (i1 != 0) {
              return localObject1;
            }
            if (!bool4) {
              break label1336;
            }
          }
        }
        if (((i1 != 0) || ((localObject2 instanceof Integer))) && (((Integer)localObject2).intValue() > 1))
        {
          localObject1 = new l(paramec, paramMap, bool2);
          if (i1 != 0) {
            return localObject1;
          }
          if (!bool4) {
            break label1336;
          }
        }
        localObject1 = new m(paramec, paramMap);
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {
          break label1336;
        }
      }
    }
    if ((i1 != 0) || ((paramec instanceof kc)))
    {
      localObject2 = paramec.c(b);
      if ((i1 != 0) || (j.equals(localObject2)))
      {
        localObject3 = paramec.c(a);
        if (i1 == 0) {
          if (m.equals(localObject3)) {
            paramec.a(o.n, o.r);
          }
        }
        if ((i1 != 0) || ((bool4) && (n.equals(localObject3)))) {
          paramec.a(o.n, o.s);
        }
        localObject1 = new o(paramec, a());
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {}
      }
      else
      {
        localObject1 = new g(paramec, a());
        if (i1 != 0) {
          return localObject1;
        }
        if (!bool4) {}
      }
    }
    else
    {
      localObject1 = new b_(paramec);
    }
    label1336:
    paramec.a((tb)localObject1);
    return localObject1;
  }
  
  protected ib a(kd paramkd)
  {
    return new cb(paramkd, this);
  }
  
  private boolean a(Object paramObject)
  {
    int i1 = ec.t;
    try
    {
      if (i1 == 0) {
        if (paramObject == null) {
          return false;
        }
      }
      if ((i1 != 0) || ((paramObject instanceof Boolean))) {
        return ((Boolean)paramObject).booleanValue();
      }
    }
    catch (Exception localException)
    {
      System.err.println("WARNING: YUtil.getBool cannot convert to boolean");
    }
    return false;
  }
  
  static Class a(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
  
  private static final class c_
    extends m
  {
    private c_(ec paramec, Map paramMap)
    {
      super(paramMap);
    }
    
    void a(String paramString, boolean paramBoolean)
    {
      int i = ec.t;
      Object localObject = this.t.a(paramString, this.i.c());
      if (i == 0) {}
      String str = this.t.a(localObject, gb.q == null ? (gb.q = gb.a("java.lang.Object")) : (i != 0) || (localObject != null) ? localObject.getClass() : gb.q);
      super.a(str, paramBoolean);
      if ((i != 0) || (!this.p.getText().equals(str))) {
        this.p.setText(str);
      }
    }
    
    public static c_ d(ec paramec, Map paramMap)
    {
      int i = ec.t;
      boolean bool2 = ec.s;
      Locale localLocale = (Locale)paramec.c(jc.C);
      Object localObject1 = paramec.c(jc.y);
      Object localObject2 = paramec.c(jc.z);
      BigDecimal localBigDecimal1;
      if ((localObject1 instanceof Double))
      {
        localBigDecimal1 = new BigDecimal(localObject1.toString());
        if (i != 0) {
          break label78;
        }
        if (!bool2) {}
      }
      else
      {
        localBigDecimal1 = fd.a;
      }
      if ((localObject2 instanceof Double))
      {
        label78:
        if (i != 0) {
          break label108;
        }
        localBigDecimal2 = new BigDecimal(localObject2.toString());
        if (!bool2) {
          break label110;
        }
      }
      label108:
      BigDecimal localBigDecimal2 = fd.b;
      label110:
      if (i == 0) {}
      HashMap localHashMap = paramMap != null ? paramMap : new HashMap();
      fd localfd = new fd(localLocale, localBigDecimal1, localBigDecimal2);
      boolean bool1 = localHashMap.containsKey(pc.z);
      Object localObject3 = localHashMap.get(pc.z);
      localHashMap.put(pc.z, localfd);
      c_ localc_ = new c_(paramec, localHashMap);
      ge localge = new ge(localLocale);
      Object localObject4 = paramec.c(jc.B);
      if (i == 0)
      {
        if (Boolean.TRUE.equals(localObject4)) {
          localge.a(true);
        }
        if (i == 0) {
          localc_.a(localge);
        }
      }
      else if (bool1)
      {
        if (i != 0) {
          break label286;
        }
        localHashMap.put(pc.z, localObject3);
        if (!bool2) {
          break label287;
        }
      }
      label286:
      localHashMap.remove(pc.z);
      label287:
      return localc_;
    }
    
    public static c_ e(ec paramec, Map paramMap)
    {
      int i = ec.t;
      boolean bool2 = ec.s;
      Object localObject1 = paramec.c(nc.y);
      Object localObject2 = paramec.c(nc.z);
      BigInteger localBigInteger1;
      if ((localObject1 instanceof Integer))
      {
        localBigInteger1 = new BigInteger(localObject1.toString());
        if (i != 0) {
          break label65;
        }
        if (!bool2) {}
      }
      else
      {
        localBigInteger1 = t.a;
      }
      if ((localObject2 instanceof Integer))
      {
        label65:
        if (i != 0) {
          break label94;
        }
        localBigInteger2 = new BigInteger(localObject2.toString());
        if (!bool2) {
          break label96;
        }
      }
      label94:
      BigInteger localBigInteger2 = t.b;
      label96:
      if (i == 0) {}
      HashMap localHashMap = paramMap != null ? paramMap : new HashMap();
      t localt = new t(localBigInteger1, localBigInteger2);
      boolean bool1 = localHashMap.containsKey(tc.z);
      Object localObject3 = localHashMap.get(tc.z);
      localHashMap.put(tc.z, localt);
      c_ localc_ = new c_(paramec, localHashMap);
      fe localfe = new fe();
      Object localObject4 = paramec.c(nc.A);
      if (i == 0)
      {
        if (Boolean.TRUE.equals(localObject4)) {
          localfe.a(true);
        }
        if (i == 0) {
          localc_.a(localfe);
        }
      }
      else if (bool1)
      {
        if (i != 0) {
          break label270;
        }
        localHashMap.put(tc.z, localObject3);
        if (!bool2) {
          break label271;
        }
      }
      label270:
      localHashMap.remove(tc.z);
      label271:
      return localc_;
    }
  }
  
  private static final class a_
  {
    private static final class b_
    {
      public static final b_ a = new b_();
      public static final b_ b = new b_();
    }
    
    private static final class c_
    {
      public static final c_ a = new c_();
      public static final c_ c = new c_();
    }
  }
  
  static final class d_
    extends d
  {
    private JComponent n;
    
    public d_(fc paramfc)
    {
      super();
      this.n = paramfc.i();
    }
    
    public Object n()
    {
      return this.n;
    }
    
    public void a(Object paramObject)
    {
      Object localObject = n();
      if (ec.t == 0)
      {
        if (localObject != paramObject)
        {
          this.i.a(paramObject);
          this.n = ((JComponent)paramObject);
        }
      }
      else {
        a(localObject, paramObject);
      }
    }
    
    public boolean o()
    {
      return this.n.isEnabled();
    }
    
    public void c(boolean paramBoolean)
    {
      boolean bool = o();
      if (ec.t == 0)
      {
        if (bool != paramBoolean) {
          this.n.setEnabled(paramBoolean);
        }
      }
      else {
        a(bool, o());
      }
    }
    
    public boolean p()
    {
      return this.i.m();
    }
    
    public void d(boolean paramBoolean)
    {
      boolean bool = p();
      if (ec.t == 0)
      {
        if (bool != paramBoolean) {
          this.i.b(paramBoolean);
        }
      }
      else {
        b(bool, paramBoolean);
      }
    }
    
    public JComponent f()
    {
      return this.n;
    }
  }
  
  static final class e_
    extends d
  {
    private JLabel n = null;
    private Object o;
    
    public e_(ec paramec)
    {
      super();
      if (ec.t == 0)
      {
        this.o = null;
        if (paramec.m()) {}
      }
      else
      {
        a(paramec.o());
      }
    }
    
    public Object n()
    {
      return this.o;
    }
    
    public void a(Object paramObject)
    {
      this.o = paramObject;
      a();
      this.n.setText((ec.t != 0) || (paramObject != null) ? paramObject.toString() : "");
    }
    
    public boolean o()
    {
      a();
      return this.n.isEnabled();
    }
    
    public void c(boolean paramBoolean)
    {
      a();
      this.n.setEnabled(paramBoolean);
    }
    
    public boolean p()
    {
      return false;
    }
    
    public void d(boolean paramBoolean) {}
    
    public JComponent f()
    {
      a();
      return this.n;
    }
    
    private void a()
    {
      if (ec.t == 0)
      {
        if (this.n == null) {
          this.n = new JLabel();
        }
      }
      else {
        this.n.putClientProperty("DefaultEditorFactory.editor", this);
      }
    }
  }
  
  final class b_
    implements tb
  {
    private final ec d;
    
    public b_(ec paramec)
    {
      this.d = paramec;
    }
    
    public ec k()
    {
      return this.d;
    }
    
    public boolean l()
    {
      return true;
    }
    
    public void a(boolean paramBoolean) {}
    
    public boolean m()
    {
      return true;
    }
    
    public void b(boolean paramBoolean) {}
    
    public Object n()
    {
      return this.d.o();
    }
    
    public void a(Object paramObject)
    {
      this.d.a(paramObject);
    }
    
    public boolean o()
    {
      return this.d.f();
    }
    
    public void c(boolean paramBoolean)
    {
      this.d.a(paramBoolean);
    }
    
    public boolean p()
    {
      return this.d.m();
    }
    
    public void d(boolean paramBoolean)
    {
      this.d.b(paramBoolean);
    }
    
    public void c()
    {
      this.d.j();
    }
    
    public void d() {}
    
    public void e()
    {
      this.d.k();
    }
    
    public JComponent f()
    {
      Object localObject = this.d.c(ec.c);
      String str = (ec.t != 0) || ((localObject instanceof String)) ? (String)localObject : "";
      JComponent localJComponent = this.d.a(gb.this.a(), str);
      localJComponent.putClientProperty("DefaultEditorFactory.editor", this);
      return localJComponent;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.gb

 * JD-Core Version:    0.7.0.1

 */